package com.hx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
 * ServletApi 方式响应数据
 */
@Controller
public class Controller02 {


    /**
     * 视图和模型
     * @return
     */
    @RequestMapping("/test5")
    public ModelAndView test5() {
        System.out.println("hello test5");
        ModelAndView mav = new ModelAndView();
        mav.setViewName("success");
        return mav;
    }





}
